package com.iob.coin.DAO;

import com.iob.coin.po.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: GuoXinyuan
 * @Date: 2021/3/14
 */

@Repository
public interface UserDAO extends JpaRepository<User,String> {

    User findById(int id);

    List<User> findUserByUsername(String username);

}
